set(requires
        driver
        nvs_flash
        esp_adc)  # 依赖 ESP-IDF 的 driver 组件

set(include_dirs
        .)  # 相对路径，指向 BSP/UART 目录

idf_component_register(SRCS "main.c"
                    INCLUDE_DIRS ${include_dirs}
                    REQUIRES ${requires})

component_compile_options(-ffast-math -O3 -Wno-error=format -Wno-format)
